﻿///<reference path="/js/MicrosoftAjax.js"/>
///<reference path="/js/doo.all.debug.js"/>
///<reference path="/js/imdoo.js"/>
Type.registerNamespace("ImDoo.Controls");

ImDoo.Controls.myact = function (elem) {
    ImDoo.Controls.myact.initializeBase(this, [elem]);
}

ImDoo.Controls.myact.prototype = {
    initialize: function () {
        ImDoo.Controls.myact.callBaseMethod(this, 'initialize');

    },
    htmlfile: 'myact.htm',

    _ischildsready: false,
    _onchildsready: null,

    onChildsReady: function () {
        //this.bind();
        this._ischildsready = true;
        if (this._onchildsready) this._onchildsready();
    },

    bind: function () {
        if (this._ischildsready == false) {
            this._onchildsready = this.bind;
            return;
        }

        var lv = this.findChild("lv");
        var request = UC.Union({});
        imdoo.svr.vol.GetMyActs(request, function (result) {
            lv.databind(result);
        });
    },

    dispose: function () {


        //在此处添加自定义释放操作
        ImDoo.Controls.myact.callBaseMethod(this, 'dispose');
    }
}

ImDoo.Controls.myact.registerClass('ImDoo.Controls.myact', Doo.UserControlBase);